import request from "@/utils/request";

// 资料管理列表
export function getListInfo(query) {
  return request({
    url: "/dataManage/list",
    method: "get",
    params: query,
  });
}

// 资料管理新增
export function addData(data) {
  return request({
    url: "/dataManage",
    method: "post",
    data,
  });
}

// 资料管理删除
export function delData(data) {
  return request({
    url: "/dataManage/" + data,
    method: "DELETE",
  });
}

// 资料管理详情
export function getDetails(data) {
  return request({
    url: "/dataManage/" + data,
    method: "get",
  });
}

// 资料推送
export function getPush(data) {
  return request({
    url: "/dataManage/" + data,
    method: "get",
  });
}

// 点击推送
export function clickPush(data) {
  return request({
    url: "/dataPushTotalLog",
    method: "POST",
    data,
  });
}

// 推送更新
export function pushProject(data) {
  return request({
    url: "/dataPushLog",
    method: "POST",
    data,
  });
}

// 推送记录
export function pushLog(data) {
  return request({
    url: "/dataPushTotalLog/byDataManageId/" + data,
    method: "get",
  });
}

// 推送记录查看
export function pushLogCheck(params) {
  return request({
    url: "/dataPushLog/logList",
    method: "get",
    params,
  });
}

// 通知图片上传
export function informPush(data) {
  return request({
    url: "/file/uploadStr",
    method: "post",
    data,
  });
}

//文件流查询
export function idataManage(data) {
  return request({
    url: "/dataManage/view",
    method: "post",
    data,
  });
}
